package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 出入库调拨单对象 erp_allocation_info
 *
 * @author wutao
 * @date 2024-06-05
 */
@TableName("erp_allocation_info")
@ApiModel(value = "erp_allocation_info对象", description = "出入库调拨单")
@Getter
@Setter
public class AllocationEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 调拨单id
     */
    @TableId(type = IdType.INPUT)
    private String id;

    /**
     * 调出项目id
     */
    @ApiModelProperty("调出项目id")
    @TableField("call_out_project")
    @Excel(name = "调出项目id")
    private String callOutProject;

    /**
     * 调入项目id
     */
    @ApiModelProperty("调入项目id")
    @TableField("call_in_project")
    @Excel(name = "调入项目id")
    private String callInProject;

    /**
     * 调入负责人
     */
    @ApiModelProperty("调入负责人")
    @TableField("call_in_user")
    @Excel(name = "调入负责人")
    private String callInUser;

    /**
     * 调出负责人
     */
    @ApiModelProperty("调出负责人")
    @TableField("call_out_user")
    @Excel(name = "调出负责人")
    private String callOutUser;

    /**
     * 调拨时间
     */
    @ApiModelProperty("调拨时间")
    @TableField("allocation_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "调拨时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date allocationTime;

    /**
     * 调入仓库
     */
    @ApiModelProperty("调入仓库")
    @TableField("call_in_warehouse")
    @Excel(name = "调入仓库")
    private String callInWarehouse;

    /**
     * 调出仓库
     */
    @ApiModelProperty("调出仓库")
    @TableField("call_out_warehouse")
    @Excel(name = "调出仓库")
    private String callOutWarehouse;

    /**
     * 删除标识
     */
    @ApiModelProperty("删除标识")
    @TableField("del_falg")
    @Excel(name = "删除标识")
    private String delFalg;



    /**
     * 调拨单编码
     */
    @ApiModelProperty("调拨单编码")
    @TableField("purchase_code")
    @Excel(name = "调拨单编码")
    private String purchaseCode;


    /**
     * 删除标识
     */
    @ApiModelProperty("流程实例id")
    @TableField("instance_id")
    @Excel(name = "流程实例id")
    private String instanceId;


    /**
     * 流程审批状态
     */
    @ApiModelProperty("state")
    @TableField("state")
    @Excel(name = "流程审批状态")
    private String state;

}
